const util = require('util')
const fs = require('fs')
// 返回一个promise
let myReadFile = util.promisify(fs.readFile)
myReadFile('E:/content.txt').then(
  value => console.log(value.toString())
)